<template>
  <div class="h100">
    <div class="equipment-top" @click="gohome()">
      <img src="~@/assets/reception/logo.png" />
    </div>
    <div class="order-form">
      <div class="order-form-detail-title">订单详情</div>
      <div class="order-form-detail">
        <div class="order-form-item" v-for="(item,index) in orderFormItems" :key="index">
          {{ item.name }}: {{ item.value }}
        </div>
      </div> 
      <div class="order-form-detail-title">接单信息</div>
      <div class="order-form-detail">
        <div class="order-form-item" v-for="(item,index) in TakingOrders" :key="index">
          {{ item.name }}: {{ item.value }}
        </div>
      </div> 
      <div class="order-form-detail-title">修理过程</div>
      <div class="order-form-steps">
        <div style="flex:1"></div>
        <div style="flex:1">
          <a-steps progress-dot :current="1" direction="vertical">
            <a-step title="提交申请" description="This is a description. This is a description." />
            <a-step title="已受理" description="This is a description. This is a description." />
            <a-step title="工作人员已上门" description="This is a description. This is a description." />
            <a-step title="维修经过" description="This is a description." />
            <a-step title="处理完成" description="This is a description." />
            <a-step title="已评价" description="This is a description." />
          </a-steps>
        </div>
        <div style="flex:1"></div>
      </div>
    </div>
    <div class="equipment-bac-bottom">
      <img src="~@/assets/reception/background2.png" alt="" >

    </div>
  </div>
</template>

<script>
export default {
  name: 'RepairForm',
  components: {
  },
  data () {
    return {
      orderFormItems: [
        {
          name: '报修时间',
          value:'2024-01-15 15:42'
        },
        {
          name: '报修地点',
          value:'贵阳市观山湖区幸福小区'
        },
        {
          name: '设备名称',
          value:'xx机器'
        },
        {
          name: '设备型号',
          value:'613213'
        },
        {
          name: '设备编号',
          value:'xdkak513'
        },
        {
          name: '联系人',
          value:'王建东'
        },
        {
          name: '电话号码',
          value:'18485609043'
        },
        {
          name: '故障描述',
          value:'里很长这里很长这里很长这里很长'
        },
        {
          name: '验收要求',
          value:'里很长这里很长这里很长这里很长'
        },
      ],
      TakingOrders: [
        {
          name: '接单人',
          value:'王建东'
        },
        {
          name: '预计到达时间',
          value:'2024-01-15 15:42'
        },
        {
          name: '联系电话',
          value:'18485609043'
        },
      ]
    }
  },
  methods: {
    displayContent(text) {
      if ( text <= 100) {
        return text;
      }
      return text.substring(0, 100) + '...';
    },
    gohome() {
      this.$router.push({ path: '/reception/findServices/index' });
    },
  },
  mounted() {
  },
}
</script>

<style lang="less" scoped >
.equipment-top{
  height: 60px;
  background: #fff;
  padding: 10px 100px ;
  cursor: pointer;
  img{
    height: 40px;
    display: block;
  }
}
.order-form{
  margin: 0 auto;
  width: 1600px;
  .order-form-detail-title{
    width: 80px;
    height: 23px;
    font-size: 20px;
    border-bottom:solid 7px #ffb979;
  }
  .order-form-detail{
    display: flex;
    flex-wrap: wrap;
    .order-form-item{
      width: 33%;
      margin: 20px 0;
      font-size: 16px;
    }
  }
  .order-form-steps{
    margin: 10px auto;
    display: flex;
    // text-align: center;
  }
}
.equipment-bac-bottom{
  position: relative;
  // bottom: 0;
  width: 100%;
  img{
    height: 180px;
    width: 100%;
  }
}
</style>